﻿@using WI.CandidateManager.Common.Data.Enums
@model WI.CandidateManager.Common.Data.Entities.Candidate
@{
    ViewBag.Title = @Resources.Candidate.CandidateChangeProfileCaption;
}

@Html.ActionLink(@Resources.Candidate.CandidateChangeProfileCaption, "ChangeProfile", "Profile")

@using (Html.BeginForm("ChangeProfile", "Profile", FormMethod.Post))
{
    @Html.ValidationSummary()
    <table class="bordered">
        <thead>
            <tr>
                <th colspan="2">@Resources.Candidate.CandidateChangeProfileCaption</th>
            </tr>
        </thead>
        <tr>
            <td class="vertical-header">@Resources.Candidate.CandidateProfileFullName</td>
            <td>@Html.TextBoxFor(m => m.FullName) </td>
            <td>@Html.ValidationMessageFor(m => m.FullName)</td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Candidate.CandidateChangeProfilePassword</td>
            <td>@Html.PasswordFor(m => m.PasswordText, new { placeholder = Resources.Candidate.CandidateChangeProfilePassword }) </td>
            <td>@Html.ValidationMessageFor(m => m.PasswordText)</td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Candidate.CandidateProfileShortName</td>
            <td>@Html.TextBoxFor(m => m.ShortName) </td>
            <td>@Html.ValidationMessageFor(m => m.ShortName)</td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Candidate.CandidateProfileEmail</td>
            <td>@Html.TextBoxFor(m => m.Email) </td>
            <td>@Html.ValidationMessageFor(m => m.Email)</td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Candidate.CandidateProfilePhone</td>
            <td>@Html.TextBoxFor(m => m.Phone) </td>
            <td>@Html.ValidationMessageFor(m => m.Phone)</td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Candidate.CandidateProfileGender</td>
            <td>@Html.DropDownListFor(m => m.Gender, new SelectList(Enum.GetValues(typeof(Gender))))</td>
            <td>@Html.ValidationMessageFor(m => m.Gender)</td>
        </tr>
    </table>
     <p>
        @Html.ActionLink(@Resources.Candidate.CandidateProfileBack, "ViewProfile", "Profile", new { @class = "common-btn-large BlueColor" }) <input class="common-btn-large BlueColor" type="submit" value="@Resources.Candidate.CandidateSubmitButton" />
    </p>
}
